package com.happy.xiao.common.rabbitmq.bean;

import java.io.Serializable;

/**
 * 可靠性确认信息 载体
 */
public class MessageReliabilityConfirm implements Serializable {

    private String messageId;
    private String exchange;
    private String routingKey;
    private int delayTime;
    private String content;  // 这个是消息内容

    public MessageReliabilityConfirm(String messageId, String exchange, String routingKey, String content, int delayTime) {
        this.messageId = messageId;
        this.exchange = exchange;
        this.routingKey = routingKey;
        this.content = content;
        this.delayTime = delayTime;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getExchange() {
        return exchange;
    }

    public void setExchange(String exchange) {
        this.exchange = exchange;
    }

    public String getRoutingKey() {
        return routingKey;
    }

    public void setRoutingKey(String routingKey) {
        this.routingKey = routingKey;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getDelayTime() {
        return delayTime;
    }

    public void setDelayTime(int delayTime) {
        this.delayTime = delayTime;
    }


    public MessageReliabilityConfirm() {
    }

    @Override
    public String toString() {
        return "MessageReliabilityConfirm{" +
                "messageId='" + messageId + '\'' +
                ", exchange='" + exchange + '\'' +
                ", routingKey='" + routingKey + '\'' +
                ", delayTime=" + delayTime +
                ", content='" + content + '\'' +
                '}';
    }
}
